import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'Authorization',
      component: (resolve) => require(['../view/Authorization.vue'], resolve),

    },
    {
      path: '/mainView',
      name: 'MainView',
      meta: {
        requiresAuth: true
      },
      component: (resolve) => require(['../view/MainView.vue'], resolve),
      children:[
        {
          path: "/create",
          name: "Create",
          meta: {
            requiresAuth: true
          },
          component: (resolve) => require(['../view/Create.vue'],resolve)
        },
        {
          path: "/T_personalcenter",
          name: "T_personalcenter",
          meta: {
            requiresAuth: true
          },
          component: (resolve) => require(['../view/T_personalcenter.vue'],resolve)
        },
        {
          path: "/T_setting",
          name: "T_setting",
          meta: {
            requiresAuth: true
          },
          component: (resolve) => require(['../view/T_setting.vue'],resolve)
        },
        {
          path: "/T-projectMain",
          name: "T-projectMain",
          meta: {
            requiresAuth: true
          },
          component: (resolve) => require(['../view/T-projectMain.vue'],resolve)
        },
        {
          path: "/T_welecome",
          name: "T_welecome",
          meta: {
            requiresAuth: true
          },
          component: (resolve) => require(['../view/T_welecome.vue'],resolve)
        },{
          path: "/T-views",
          name: "T-views",
          component: (resolve) => require(['../view/T_view.vue'],resolve)
        },{
          path: "/T-views-single",
          name: "T-views-single",
          component: (resolve) => require(['../view/T_view_single.vue'],resolve)
        },{
          path: "/T-views-select",
          name: "T-views-select",
          component: (resolve) => require(['../view/T_view_select.vue'],resolve)
        },{
          path: "/T-summary",
          name: "T-summary",
          component: (resolve) => require(['../view/T_summary.vue'],resolve)
        },{
          path: "/T-summary-pie",
          name: "T-summary-pie",
          component: (resolve) => require(['../view/T_summary_pie.vue'],resolve)
        },{
          path: "/T-summary-line",
          name: "T-summary-line",
          component: (resolve) => require(['../view/T-summary_line.vue'],resolve)
        },{
          path: "/t-group",
          name: "T-group",
          component: (resolve) => require(['../view/T_group.vue'],resolve)
        },
        {
          path: "/t-personalcenter",
          name: "T-personalcenter",
          component: (resolve) => require(['../view/T_personalcenter.vue'],resolve)
        },{
          path: "/T2017-T-setting",
          name: "T2017-T-setting",
          component: (resolve) => require(['../view/T2017_T_setting.vue'],resolve)
        },{
          path: "/T2017-T",
          name: "T2017-T",
          component: (resolve) => require(['../view/T2017_T.vue'],resolve)
        },{
          path: "/push",
          name: "push",
          component: (resolve) => require(['../view/push.vue'],resolve)
        },{
          path: "/T-allprojectshow",
          name: "T-allprojectshow",
          component: (resolve) => require(['../view/T-allprojectshow.vue'],resolve)
        },{
          path: "/T-allStudentInfo",
          name: "T-allStudentInfo",
          component: (resolve) => require(['../view/T-allStudentInfo.vue'],resolve)
        },{
          path: "/t-setting",
          name: "T-setting",
          component: (resolve) => require(['../view/T_setting.vue'],resolve)
        },{
          path: "/tag",
          name: "Tag",
          component: (resolve) => require(['../view/Tag.vue'],resolve)
        },,{
          path: "/s-personalcenter",
          name: "S-personalcenter",
          component: (resolve) => require(['../view/S_personalcenter.vue'],resolve)
        },
        {
          path: "/Report",
          name: "Report",
          component: (resolve) => require(['../view/Report.vue'],resolve)
        },{
          path: "/Report2",
          name: "Report2",
          component: (resolve) => require(['../view/Report2.vue'],resolve)
        },{
          path: "/S-welecome",
          name: "S-welecome",
          component: (resolve) => require(['../view/S_welecome.vue'],resolve)
        }
      ]
    }
    //下面做好router后可以删除掉
    /*{
      path: '/',
      name: 'Main',
      component: (resolve) => require(['../views/MainView.vue'],resolve),
      children:[
        {
          path: "/home",
          name: "Home",
          component: (resolve) => require(['../views/Home.vue'],resolve)
        },{
          path: "/home_s",
          name: "Home_S",
          component: (resolve) => require(['../views/Home_S.vue'],resolve)
        },{
          path: "/home_t",
          name: "Home_T",
          component: (resolve) => require(['../views/Home_T.vue'],resolve)
        },{
          path: "/authorization",
          name: "Authorization",
          component: (resolve) => require(['../views/Authorization.vue'],resolve)
        },{
          path: "/choose",
          name: "Choose",
          component: (resolve) => require(['../views/Choose.vue'],resolve)
        },{
          path: "/create",
          name: "Create",
          component: (resolve) => require(['../views/Create.vue'],resolve)
        },
        {
          path: "/T-summary-comparison",
          name: "T-summary-comparison",
          component: (resolve) => require(['../view/T_summary_comparison.vue'],resolve)
        },{
          path: "/s-setting",
          name: "S-setting",
          component: (resolve) => require(['../views/S_setting.vue'],resolve)
        },{
          path: "/s-group",
          name: "S-group",
          component: (resolve) => require(['../view/S_group.vue'],resolve)
        },{
          path: "/S2017-S",
          name: "S2017-S",
          component: (resolve) => require(['../views/S2017_S.vue'],resolve)
        }, {
          path: "/S2017-S-setting",
          name: "S2017-S-setting",
          component: (resolve) => require(['../views/S2017_S_setting.vue'],resolve)
        },{
          path: "/S-views",
          name: "S-views",
          component: (resolve) => require(['../views/S_view.vue'],resolve)
        },{
          path: "/S-views-single",
          name: "S-views-single",
          component: (resolve) => require(['../views/S_view_single.vue'],resolve)
        },{
          path: "/S-views-all",
          name: "S-views-all",
          component: (resolve) => require(['../views/S_view_all.vue'],resolve)
        },{
          path: "/S-views-select",
          name: "S-views-elect",
          component: (resolve) => require(['../views/S_view_select.vue'],resolve)
        },{
          path: "/S-summamy-pie",
          name: "S-summamy-pie",
          component: (resolve) => require(['../views/S_summamy_pie.vue'],resolve)
        },{
          path: "/S-summamy-line",
          name: "S-summamy-line",
          component: (resolve) => require(['../views/S_summamy_line.vue'],resolve)
        },{
          path: "/T-welecome",
          name: "T-welecome",
          component: (resolve) => require(['../views/T_welecome.vue'],resolve)
        },{
          path: "/T-项目系统主页",
          name: "T-项目系统主页",
          component: (resolve) => require(['../views/T-projectMain.vue'],resolve)
        },{
          path: "/T-查看项目计划",
          name: "T-查看项目计划",
          component: (resolve) => require(['../views/T-查看项目计划.vue'],resolve)
        },{
          path: "/T-项目详细信息",
          name: "T-项目详细信息",
          component: (resolve) => require(['../views/T-项目详细信息.vue'],resolve)
        },{
          path: "/T-所有成员展示",
          name: "T-所有成员展示",
          component: (resolve) => require(['../views/T-所有成员展示.vue'],resolve)
        },{
          path: "/T-项目详细信息（1）",
          name: "T-项目详细信息（1）",
          component: (resolve) => require(['../views/T-项目详细信息（1）.vue'],resolve)
        },{
          path: "/T-查看任务计划",
          name: "T-查看任务计划",
          component: (resolve) => require(['../views/T-查看任务计划.vue'],resolve)
        },{
          path: "/T-项目工作信息",
          name: "T-项目工作信息",
          component: (resolve) => require(['../views/T-项目工作信息.vue'],resolve)
        },{
          path: "/项目系统-S-1负",
          name: "项目系统-S-1负示",
          component: (resolve) => require(['../views/项目系统-S-1负.vue'],resolve)
        },{
          path: "/S-1-我的项目",
          name: "S-1-我的项目",
          component: (resolve) => require(['../views/S-1-我的项目.vue'],resolve)
        },{
          path: "/项目系统-S-1-1",
          name: "项目系统-S-1-1",
          component: (resolve) => require(['../views/项目系统-S-1-1.vue'],resolve)
        },{
          path: "/S-1-1-我的项目",
          name: "S-1-1-我的项目",
          component: (resolve) => require(['../views/S-1-1-我的项目.vue'],resolve)
        },{
          path: "/项目系统-S-2",
          name: "项目系统-S-2",
          component: (resolve) => require(['../views/项目系统-S-2.vue'],resolve)
        },{
          path: "/S-2-我的项目",
          name: "S-2-我的项目",
          component: (resolve) => require(['../views/S-2-我的项目.vue'],resolve)
        },{
          path: "/项目系统-S-2-1-负",
          name: "项目系统-S-2-1-负",
          component: (resolve) => require(['../views/项目系统-S-2-1-负.vue'],resolve)
        },{
          path: "/S-2-1-我的项目",
          name: "S-2-1-我的项目",
          component: (resolve) => require(['../views/S-2-1-我的项目.vue'],resolve)
        },{
          path: "/项目工作信息",
          name: "项目工作信息",
          component: (resolve) => require(['../views/项目工作信息.vue'],resolve)
        },{
          path: "/成员参与项目展示",
          name: "成员参与项目展示",
          component: (resolve) => require(['../views/成员参与项目展示.vue'],resolve)
        },{
          path: "/所有项目展示",
          name: "所有项目展示",
          component: (resolve) => require(['../views/所有项目展示.vue'],resolve)
        },{
          path: "/项目进度汇报",
          name: "项目进度汇报",
          component: (resolve) => require(['../views/项目进度汇报.vue'],resolve)
        },{
          path: "/项目详细信息",
          name: "项目详细信息",
          component: (resolve) => require(['../views/项目详细信息.vue'],resolve)
        },{
          path: "/修改项目信息",
          name: "修改项目信息",
          component: (resolve) => require(['../views/修改项目信息.vue'],resolve)
        },{
          path: "/查看项目计划",
          name: "查看项目计划",
          component: (resolve) => require(['../views/查看项目计划.vue'],resolve)
        },{
          path: "/查看项目计划（只查）",
          name: "查看项目计划（只查）",
          component: (resolve) => require(['../views/查看项目计划（只查）.vue'],resolve)
        },{
          path: "/修改项目计划",
          name: "修改项目计划",
          component: (resolve) => require(['../views/修改项目计划.vue'],resolve)
        },{
          path: "/添加项目",
          name: "添加项目",
          component: (resolve) => require(['../views/添加项目.vue'],resolve)
        },{
          path: "/添加项目计划",
          name: "添加项目计划",
          component: (resolve) => require(['../views/添加项目计划.vue'],resolve)
        },{
          path: "/添加项目计划-2",
          name: "添加项目计划-2",
          component: (resolve) => require(['../views/添加项目计划-2.vue'],resolve)
        },{
          path: "/分配任务",
          name: "分配任务",
          component: (resolve) => require(['../views/分配任务.vue'],resolve)
        },{
          path: "/任务分配（只查）",
          name: "任务分配（只查）",
          component: (resolve) => require(['../views/任务分配（只查）.vue'],resolve)
        },{
          path: "/分配任务-2",
          name: "分配任务-2",
          component: (resolve) => require(['../views/分配任务-2.vue'],resolve)
        },{
          path: "/添加项目总结",
          name: "添加项目总结",
          component: (resolve) => require(['../views/添加项目总结.vue'],resolve)
        },{
          path: "/查看项目总结",
          name: "查看项目总结",
          component: (resolve) => require(['../views/查看项目总结.vue'],resolve)
        },{
          path: "/修改项目总结",
          name: "修改项目总结",
          component: (resolve) => require(['../views/修改项目总结.vue'],resolve)
        },{
          path: "/添加任务计划",
          name: "添加任务计划",
          component: (resolve) => require(['../views/添加任务计划.vue'],resolve)
        },{
          path: "/查看任务计划",
          name: "查看任务计划",
          component: (resolve) => require(['../views/查看任务计划.vue'],resolve)
        },{
          path: "/修改任务计划",
          name: "修改任务计划",
          component: (resolve) => require(['../views/修改任务计划.vue'],resolve)
        },
      ]
    }*/
  ]
})
